<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<%@ page import="dao.MaintainDao" %> 
<%@ page import="bean.MaintainInfo" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
		    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		    <link href="<%=request.getContextPath() %>/css/SonPage.css" rel="stylesheet" type="text/css">
		    <link href="<%=request.getContextPath() %>/css/Element.css" rel="stylesheet" type="text/css">
		    <link href="<%=request.getContextPath() %>/css/easyui.css" rel="stylesheet" type="text/css">
		    <link href="<%=request.getContextPath() %>/css/icon.css" rel="stylesheet" type="text/css">
		    <script src="<%=request.getContextPath() %>/js/Mtopt_1.1.js" type="text/javascript"></script>
		    <script src="<%=request.getContextPath() %>/js/SonPage.js" type="text/javascript"></script>
		    <script src="<%=request.getContextPath() %>/js/jquery-1.8.3.js" type="text/javascript"></script>
		    <script src="<%=request.getContextPath() %>/js/jquery.easyui.min.js" type="text/javascript"></script>
		    <script src="<%=request.getContextPath() %>/js/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <style type="text/css">
        #DivShowData {
            margin-left: 40px;
        }
		.DivShowData{ position:static; width:1180px;height:600px;}
    </style>
</head>  
<body>
<% MaintainDao mdao=new MaintainDao(); 
    List<MaintainInfo> list=mdao.getAllMain();%>
   
    <div class="DivShowData panel-noscroll">
        <div class="panel datagrid" style="width: 1180px;">
         <div class="panel-header" style="width: 1168px;">
	        <div class="panel-title">维护记录管理</div>
	        <div class="panel-tool"></div>	
         </div>
      <div class="datagrid-wrap panel-body" title="" style="width: 1178px; height: 571px;">
        <div class="datagrid-toolbar">
	        <table cellspacing="0" cellpadding="0">
	          <tbody>
	             <tr>  
	                <td>
	                  <a href="../maintain/addmain.jsp" class="l-btn l-btn-plain" id="">
	                    <span class="l-btn-left">
	                    <span class="l-btn-text icon-add l-btn-icon-left">增加</span>
	                    </span>
	                  </a>
	                </td>               
	             </tr>
	         </tbody>
	      </table>
        </div>
			<div class="datagrid-view" style="width: 1178px; height: 542px;">
			   <style type="text/css">
						div.datagrid-cell-c1-SMID {width:undefinedpx;}
						div.datagrid-cell-c1-SMUser {width:undefinedpx;}
						div.datagrid-cell-c1-InputAccount {width:undefinedpx;}
						div.datagrid-cell-c1-ComName {width:undefinedpx;}
						div.datagrid-cell-c1-SMInfo {width:142px;}
						div.datagrid-cell-c1-SMTime {width:62px;}
			   </style>
			   <div class="datagrid-view1">
			      <div class="datagrid-header" >
			  	     <div class="datagrid-header-inner" style="display: block;"></div>
			      </div>
				  <div class="datagrid-body">
				     <div class="datagrid-body-inner"></div>
				  </div>
				  <div class="datagrid-footer">
				     <div class="datagrid-footer-inner" style="display: none;"></div>
				  </div>
			   </div>
			   <div class="datagrid-view2" style="width: 1178px;">
				   <div class="datagrid-header" style="width: 1178px;">
					   <div class="datagrid-header-inner" style="display: block;">
					       <table class="datagrid-htable">
					             <tr class="datagrid-header-row">
					                <td style="width:100px;" rowspan="2" align="center" field="SMUser">
					                   <div class="datagrid-cell" style="text-align: left;">
					                     <span>维护人</span>
					                     <span class="datagrid-sort-icon">&nbsp;</span>
					                   </div>
					                </td>
					                <td style="width:100px;" rowspan="2" align="center" field="InputAccount">
					                   <div class="datagrid-cell" style="text-align: left;">
					                      <span>录入人</span>
					                      <span class="datagrid-sort-icon">&nbsp;</span>
					                   </div>
					               </td>
					                <td style="width:250px;" rowspan="2" align="center" field="ComName">
					                  <div class="datagrid-cell" style="text-align: left;">
					                     <span>维护企业</span>
					                     <span class="datagrid-sort-icon">&nbsp;</span>
					                  </div>
					               </td>
					               <td style="width:300px;" rowspan="2" align="center" field="SMInfo">
					                  <div class="datagrid-cell" style="width: 300px; text-align: left;">
					                     <span>维护内容</span>
					                     <span class="datagrid-sort-icon">&nbsp;</span>
					                  </div>
					               </td>
					                <td style="width:100px;" rowspan="2" align="center" field="SMTime" >
					                  <div class="datagrid-cell" style="width: 100px; text-align: left;">
					                     <span>维护时间</span>
					                     <span class="datagrid-sort-icon">&nbsp;</span>
					                  </div>
					               </td>
					            </tr>
					           
					                 <% for(MaintainInfo minfo:list){ %>
					            <tr>													
									<td><%=minfo.getMaintainer() %></td>
									<td><%=minfo.getKeyboarder() %></td>
									<td><%=minfo.getCompanyName() %></td>
									<td><%=minfo.getContents() %></td>
									<td><%=minfo.getMaindate() %></td>
                                    <td>
                                       <a href="<%=request.getContextPath() %>/deleteMainServlet?id=<%=minfo.getId()%>">删除</a>
                                    </td>
                                </tr>
							   <%}%>
							   	
					      </table>
					   </div>
				   </div>
			   </div>
            </div>
      </div>
       </div>
    </div>
</body>
</html>